package com.qsign.sfrz_android.net;

import android.os.Handler;
import android.text.TextUtils;

import com.qsign.sfrz_android.activity.home.Model.FuheModel;
import com.qsign.sfrz_android.activity.login.Model.MyUserData;
import com.qsign.sfrz_android.base.MyApplication;
import com.qsign.sfrz_android.base.YcspUserDataShared;

import org.json.JSONObject;

public class RequestServiceImpl {

    /**
     * 托盘查询
     */
    public static void tuopan_query(Handler handler, int requestType, String tuopan) {

        JSONObject inputInfo = new JSONObject();
        try {
            inputInfo.put("TRAYCODE", tuopan);
        } catch (Exception e) {
            // TODO: handle exception
        }
        String methodName = "bwCheckTrayCode";

        IServiceImpl.callWebMethod(handler, requestType, inputInfo, methodName);
    }

    /**
     * 库位查询
     */
    public static void kuwei_query(Handler handler, int requestType, String tuopan) {

        JSONObject inputInfo = new JSONObject();
        try {
            inputInfo.put("KW", tuopan);
        } catch (Exception e) {
            // TODO: handle exception
        }
        String methodName = "bwCheckKw";

        IServiceImpl.callWebMethod(handler, requestType, inputInfo, methodName);
    }

}
